package com.qf.day02;

import java.util.Scanner;

/**
 * 案例:（要求选择A和a是一样的结果）
 * 选择A: 好评
 * 选择B: 一般
 * 选择C: 良好
 * 选择D: 差评
 */
public class SwitchDemo02 {
    public static void main(String[] args) {

        String msg = "";

        Scanner scanner = new Scanner(System.in);
        System.out.println("请求输入A，B，C,D");
        msg = scanner.next();
        // 把字符串转换为大写
        msg = msg.toUpperCase();

        switch (msg){
            case "A":
                System.out.println("好评");
                break;
            case "B":
                System.out.println("一般");
                break;
            case "C":
                System.out.println("良好");
                break;
            case "D":
                System.out.println("差评");
                break;
            default:
                System.out.println("输入错误");

        }

    }
}
